import request from '@/utils/request'

export const apiGetTenantList = () => {
  return request({
    url: '/org/organizationController/listTenant',
    method: 'get',
    noToken: true,
  })
}

export const apiLogin = (data, loading) => {
  return request({
    url: '/auth/login',
    method: 'post',
    data,
    noToken: true,
    resField: 'obj',
    loading
  })
}

export const apiLogout = () => {
  return request({
    url: '/auth/logout',
    method: 'post',
  })
}